package com.ygs.secs.mapper;

import com.ygs.secs.model.Enterprise;

import java.util.List;

import com.ygs.secs.model.EnterprisePhoto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface EnterpriseMapper {
    /**
     * delete by primary key
     *
     * @param enterpriseid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String enterpriseid);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Enterprise record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Enterprise record);

    /**
     * select by primary key
     *
     * @param enterpriseid primary key
     * @return object by primary key
     */
    Enterprise selectByPrimaryKey(String enterpriseid);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Enterprise record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Enterprise record);

    int updateBatch(List<Enterprise> list);

    int updateBatchSelective(List<Enterprise> list);

    int batchInsert(@Param("list") List<Enterprise> list);

    int updatepwd(Enterprise enterprise);

    Enterprise getcompanyDetail(String priseid);

    List<Enterprise> getlatestEnterpriseList();

    List<Enterprise> getfamousEnterpriseList();

    List<Enterprise> findUncertifiedCompanies(String authcode);

    int batchReviewCompanies(@Param("list") String[] commpanys, @Param("status") String status, @Param("vtime") String vtime);

    int batchDelete(@Param("array") String[] enterprises);

    List<Enterprise> getEnterpriseByAttributes(Enterprise record);
}